import request from "@/utils/request";

/**
 * 获取B端用户列表
 */
export const getAccountListApi = (data) => {
    return request({
        url: "/admin/admin/list",
        method: "post",
        data
    })
}

/**
 * 新增B端用户
 */
export const addAccountApi = (data) => {
    return request({
        url: "/admin/admin/add",
        method: "post",
        data
    })
}

/**
 * 编辑B端用户
 */
export const editAccountApi = (data) => {
    return request({
        url: "/admin/admin/edit",
        method: "post",
        data
    })
}

/**
 * 删除B端用户
 */
export const deleteAccountApi = (id) => {
    return request({
        url: `/admin/admin/del?id=${id}`,
        method: "delete"
    })
}

/**
 * 获取B端登录用户信息
 */
export const getLoginInfoApi = () => {
    return request({
        url: "/admin/admin/login_info/get",
        method: "get"
    })
}

